In [1]:
segtotales = int(input("Ingrese la cantidad de segundos: "))
In [2]:
mintotales = segtotales // 60
In [3]:
segs = segtotales - mintotales*60
In [4]:
horastotales = mintotales // 60
In [5]:
mins = mintotales % 60
In [6]:
dias = horastotales // 24
In [7]:
horas = horastotales % 24
In [9]:
print(segtotales, " segundos corresponde a ", dias, " dias y ",horas,":",mins,":",segs, sep="")
In [ ]:
In [ ]: